<include file="../Public/_header" />
<div class="so_main">
  <div class="page_tit">邮件配置</div>
  
  <div class="form2">
  	<form method="post" action="{:U('admin/Global/email')}">
   <dl class="lineD">
      <dt>发送者姓名：</dt>
      <dd>
        <input name="mailconf[0][email_sender_name]" type="text" id="textfield" value="{$mailconf.0.email_sender_name}" />
		<p>发送者姓名，用户看到的来信人。</p>
    </dl>
   <dl class="lineD">
      <dt>发送者信箱：</dt>
      <dd>
        <input name="mailconf[0][email_sender_email]" type="text" id="textfield" value="{$mailconf.0.email_sender_email}" />
		<p>用户看到的发件信箱，(smtp方式无效,发件为对应的信箱。)</p>
    </dl>
   <dl class="lineB">
      <dt>回信接收信箱：</dt>
      <dd>
        <input name="mailconf[0][email_reply_account]" type="text" id="textfield" value="{$mailconf.0.email_reply_account}" />
		<p>用户回信时的接收信箱，(smtp方式无效,收件箱为对应的信箱。)</p>
    </dl>


    <dl class="lineD">
      <dt>邮件发送方式1：</dt>
      <dd>
		<select name="mailconf[1][email_sendtype]">
			<option value="smtp" <eq name="mailconf.1.email_sendtype" value="smtp">selected</eq> >smtp</option>
		</select>
    </dl>
    <dl class="lineD">
	   <dt>启用顺序</dt>
       <dd>
		<input name="mailconf[1][order]" type="text" value="{$mailconf.1.order}">
		<p>0为不启用，其他按1/2/3此类顺序依次调用</p>
		</dd>
    </dl>
    <dl class="lineD">
      <dt>SMTP地址：</dt>
      <dd>
		<input name="mailconf[1][email_host]" type="text" value="{$mailconf.1.email_host}">
		<p>发送邮箱的smtp地址。如: smtp.gmail.com或smtp.qq.com。</p>
      </dd>
	  
    </dl>
      <dl class="lineD">
      <dt>是否启用SSL连接：</dt>
      <dd>
        <label><input type="radio" name="mailconf[1][email_ssl]" value="1" <eq name="mailconf.1.email_ssl" value="1">checked</eq> >是</label>
        <label><input type="radio" name="mailconf[1][email_ssl]" value="0" <eq name="mailconf.1.email_ssl" value="0">checked</eq>>否</label>
		<p>此选项需要服务器环境支持SSL（如果使用Gmail或QQ邮箱，请选择是）</p>
    </dl>
	
   <dl class="lineD">
      <dt>端口：</dt>
      <dd>
        <input name="mailconf[1][email_port]" type="text" id="textfield" value="{$mailconf.1.email_port}" />
		<p>smtp的端口。默认为25。具体请参看各STMP服务商的设置说明 （如果使用Gmail或QQ邮箱，请将端口设为465）</p>
    </dl>
	
   <dl class="lineD">
      <dt>邮箱地址：</dt>
      <dd>
        <input name="mailconf[1][email_account]" type="text" id="textfield" value="{$mailconf.1.email_account}" />
		<p>邮箱地址请输入完整地址email@email.com格式</p>
    </dl>
	
   <dl class="lineB">
      <dt>邮箱密码：</dt>
      <dd>
        <input name="mailconf[1][email_password]" type="text" id="textfield" value="{$mailconf.1.email_password}" />
		<p>邮箱密码</p>
    </dl>
    <dl class="lineD">
      <dt>邮件发送方式2：</dt>
      <dd>
		<select name="mailconf[2][email_sendtype]">
			<option value="smtp" <eq name="mailconf.2.email_sendtype" value="smtp">selected</eq> >smtp</option>
		</select>
    </dl>
    <dl class="lineD">
	   <dt>启用顺序</dt>
       <dd>
		<input name="mailconf[2][order]" type="text" value="{$mailconf.2.order}">
		<p>0为不启用，其他按1/2/3此类顺序依次调用</p>
		</dd>
    </dl>
    <dl class="lineD">
      <dt>SMTP地址：</dt>
      <dd>
		<input name="mailconf[2][email_host]" type="text" value="{$mailconf.2.email_host}">
		<p>发送邮箱的smtp地址。如: smtp.gmail.com或smtp.qq.com。有几个可以换行分割</p>
      </dd>
    </dl>
      <dl class="lineD">
      <dt>是否启用SSL连接：</dt>
      <dd>
        <label><input type="radio" name="mailconf[2][email_ssl]" value="1" <eq name="mailconf.2.email_ssl" value="1">checked</eq> >是</label>
        <label><input type="radio" name="mailconf[2][email_ssl]" value="0" <eq name="mailconf.2.email_ssl" value="0">checked</eq>>否</label>
		<p>此选项需要服务器环境支持SSL（如果使用Gmail或QQ邮箱，请选择是）</p>
    </dl>
	
   <dl class="lineD">
      <dt>端口：</dt>
      <dd>
        <input name="mailconf[2][email_port]" type="text" id="textfield" value="{$mailconf.2.email_port}" />
		<p>smtp的端口。默认为25。具体请参看各STMP服务商的设置说明 （如果使用Gmail或QQ邮箱，请将端口设为465）</p>
    </dl>
	
   <dl class="lineD">
      <dt>邮箱地址：</dt>
      <dd>
        <input name="mailconf[2][email_account]" type="text" id="textfield" value="{$mailconf.2.email_account}" />
		<p>邮箱地址请输入完整地址email@email.com格式</p>
    </dl>
	
   <dl class="lineB">
      <dt>邮箱密码：</dt>
      <dd>
        <input name="mailconf[2][email_password]" type="text" id="textfield" value="{$mailconf.2.email_password}" />
		<p>邮箱密码</p>
    </dl>
    <dl class="lineD">
      <dt>邮件发送方式3：</dt>
      <dd>
		<select name="mailconf[3][email_sendtype]">
			<option value="mail" <eq name="mailconf.3.email_sendtype" value="mail">selected</eq> >PHP (mail)</option>
		</select>
    </dl>
    <dl class="lineB">
	   <dt>启用顺序</dt>
       <dd>
		<input name="mailconf[3][order]" type="text" value="{$mailconf.3.order}">
		<p>0为不启用，其他按1/2/3此类顺序依次调用</p>
		</dd>
    </dl>
    <dl class="lineD">
      <dt>邮件发送方式4：</dt>
      <dd>
		<select name="mailconf[4][email_sendtype]">
			<option value="sendmail" <eq name="mailconf.4.email_sendtype" value="sendmail">selected</eq> >sendmail</option>
		</select>
    </dl>
    <dl class="lineD">
	   <dt>启用顺序</dt>
       <dd>
		<input name="mailconf[4][order]" type="text" value="{$mailconf.4.order}">
		<p>0为不启用，其他按1/2/3此类顺序依次调用</p>
		</dd>
    </dl>
    <dl class="lineD">
	   <dt>sendmail地址</dt>
       <dd>
		<input name="mailconf[4][path]" type="text" value="{$mailconf.4.path}">
		<p>sendmail地址，一般是/usr/sbin/sendmail</p>
		</dd>
    </dl>
    <div class="page_btm">
      <input type="submit" class="btn_b" value="确定" />
    </div>
    </form>
  </div>
  <div class="page_tit">测试邮件配置<a name="testemail" ></a></div>
  <div class="form2">
    	<form method="post" action="{:U('admin/Global/testemail')}">
  <dl class="lineD">
      <dt>测试邮箱列表</dt>
      <dd>
        <textarea name="testmails" cols="50" rows="5"></textarea>
		<p>发送测试邮件的邮箱地址。; , | 换行、空格都可以作为分割</p>
      </dd>
      <dt>测试邮件内容</dt>
      <dd>
        <textarea name="mailcontent" cols="50" rows="5">test mail</textarea>
		<p>要发送的邮件内容</p>
      </dd>
    </dl>
    <div class="page_btm">
      <input type="submit" class="btn_b" value="确定" />
    </div>
	</form>
  </div>

</div>
<include file="../Public/_footer" />